package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.commodity.models.bo.CommodityApplyAgentBO;
import com.ztgf.commodity.models.dto.CommodityApplyAgentDTO;
import com.ztgf.commodity.models.vo.CommodityApplyAgentLogVO;
import com.ztgf.commodity.models.vo.CommodityApplyAgentVO;
import com.ztgf.commodity.models.vo.CommoditySysUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品代理申请表映射
 *
 * @author chenyu.wang
 * @Date 2020-06-23 17:07:09
 */
@Mapper
public interface CommodityApplyAgentMapper extends BaseMapper<CommodityApplyAgentDTO> {

    /*
     * @description:后台管理系统代理申请列表
     * @author: chenyu.wang
     * @date: 2020-09-11
     * @return:
     */
    List<CommodityApplyAgentVO> queryPageList(Page<CommodityApplyAgentVO> page, @Param(value = "item") CommodityApplyAgentBO bo);

    /*
     * @description:查询代理申请日志
     * @author: chenyu.wang
     * @date: 2020-09-11
     * @return:
     */
    List<CommodityApplyAgentLogVO> queryLog(@Param(value = "id") Long id);

    /*
     * @description:查询系统经办人
     * @author: chenyu.wang
     * @date: 2020-09-11
     * @return:
     */
    List<CommoditySysUserVO> queryManagerUser();
}
